//
//  PopularViewModel.swift
//  Chatup
//
//  Created by iron man on 2024/1/13.
//

import Foundation

@MainActor
class PopularViewModel: ObservableObject {
    @Published var items:[PopularModel] = []
    
    init() {
        items.append(.init(title: String.i18nText("feature_translator"), iconName: "✍️"))
        items.append(.init(title: String.i18nText("feature_emoji"), iconName: "🥰"))
       
    }
}


struct PopularModel:Identifiable {
    let id = UUID()
    let title:String
    let iconName:String
    init(title: String, iconName: String) {
        self.title = title
        self.iconName = iconName
    }
}
